<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function fn(a,b,c) {
            if(a>b){
                s = a;
                a = b;
                b = s;
            }
            if(a>c){
                s = a;
                a = c;
                c = s;
            }
            if(b>c){
                s = b;
                b = c;
                c = s;
            }
            document.write("最小值"+a+"<br>")
            document.write("中值"+b+"<br>")
            document.write("最大值"+c+"<br>")
        }
        // var arr = [9, 8, 7, 4, 6, 5];
        var a = prompt("求a~c之间的各种值,请输入a","9")
        var b = prompt("求a~c之间的各种值,请输入b","5")
        var c = prompt("求a~c之间的各种值,请输入c","2")
        var s = 0;
        fn(a,b,c);
    </script>
</head>
<body>
    
</body>
</html>